﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchList.aspx.cs" Inherits="Admin_SearchList" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Admin Template</title>
    <link href="styles/layout.css" rel="stylesheet" type="text/css" />
    <link href="styles/wysiwyg.css" rel="stylesheet" type="text/css" />
    <!-- Theme Start -->
    <link href="themes/blue/styles.css" rel="stylesheet" type="text/css" />
    <!-- Theme End -->
</head>
<body id="homepage">
    <form id="form1" runat="server">
    <div id="header">
    	<a href="" title=""><img src="img/cp_logo.png" alt="Control Panel" class="logo" /></a>
    	<div id="searcharea">
           
            <p class="left smltxt"><a href="#" title="">标题</a></p>
            <input type="text" class="searchbox" value="Search control panel..." onclick="if (this.value =='Search control panel...'){this.value=''}"/>
          <input type="submit" value="Search" class="searchbtn" />
        </div>
    </div>
        
    <!-- Top Breadcrumb Start -->
    <div id="breadcrumb">
    	<ul>	
        	<li><img src="img/icons/icon_breadcrumb.png" alt="Location" /></li>
        	<li><strong>位置:</strong></li>            
            <li class="current">新闻搜索结果</li>
        </ul>
    </div>
    <!-- Top Breadcrumb End -->
     
    <!-- Right Side/Main Content Start -->
    <div id="rightside">
    
    	<!-- Status Bar Start -->
        <div class="status warning" id="divStatusWarning" runat="server" visible="False">
        	<p class="closestatus"><a href="" title="Close">x</a></p>
        	<p><img src="img/icons/icon_warning.png" alt="Warning" /><span>注意!</span> 本栏目需要有图片，如没有图片主页上将无图片显示.</p>
        </div>
        <!-- Status Bar End -->
        
         <!-- Red Status Bar Start -->
        <div class="status success" id="divStatusSuccess" runat="server" visible="False">
        	<p class="closestatus"><a href="" title="Close">x</a></p>
        	<p><img src="img/icons/icon_success.png" alt="Success" /><span>成功!</span> 您的信息已经成功上传至网站.</p>
        </div>
        <!-- Red Status Bar End -->
        
        <!-- Green Status Bar Start -->
        <div class="status error" id="divStatusError" runat="server" visible="False">
        	<p class="closestatus"><a href="" title="Close">x</a></p>
        	<p><img src="img/icons/icon_error.png" alt="Error" /><span>错误!</span> 本栏目最多添加10张图片，超出将引发页面混乱.</p>
        </div>
        <!-- Green Status Bar End -->
        
        <!-- Blue Status Bar Start -->
        <div class="status info" id="divStatusInfo" runat="server" visible="False">
        	<p class="closestatus"><a href="" title="Close">x</a></p>
        	<p><img src="img/icons/icon_info.png" alt="Information" /><span>提示:</span> 本栏目添加的图片尺寸为300*200.</p>
        </div>
        <!-- Blue Status Bar End -->   
    
        
       
        <!-- Alternative Content Box Start -->
         <div class="contentcontainer">
            <div class="headings altheading">
                <h2>普通新闻</h2>                
            </div>             
            <div class="contentbox">    
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" onrowdatabound="GridView1_RowDataBound"
                    EnableModelValidation="True" Width="100%" 
                    onrowcommand="GridView1_RowCommand" onrowdeleting="GridView1_RowDeleting" 
                    onrowediting="GridView1_RowEditing">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True">
                        <ItemStyle Width="5%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="EditDate" DataFormatString="{0:yyyy/MM/dd}" 
                            HeaderText="时间">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="标题" ShowHeader="False">
                            <ItemTemplate>
                                <%# Eval("Title") %>&nbsp;&nbsp;&nbsp;<%# GetTopImage(Container.DataItem) %>                                
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:BoundField DataField="Title" HeaderText="标题" />--%>
                        <asp:CommandField ButtonType="Image" 
                            InsertImageUrl="~/Admin/img/icons/icon_unapprove.png" 
                            NewImageUrl="~/Admin/img/icons/icon_unapprove.png" ShowInsertButton="True" 
                            HeaderText="添加" ShowHeader="True">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="5%" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Image" 
                            EditImageUrl="~/Admin/img/icons/icon_edit.png" HeaderText="修改" 
                            ShowEditButton="True" ShowHeader="True">
                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Image" HeaderText="置顶" 
                            SelectImageUrl="~/Admin/img/icons/icon_approve.png" ShowHeader="True" 
                            ShowSelectButton="True">
                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Image" 
                            DeleteImageUrl="~/Admin/img/icons/icon_delete.png" HeaderText="删除" 
                            ShowDeleteButton="True" ShowHeader="True">
                        <ItemStyle Width="5%" />
                        </asp:CommandField>
                    </Columns>
                    <EmptyDataTemplate>
                        当前项目没有任何数据                         
                        <br />
                    </EmptyDataTemplate>
                </asp:GridView>  
            </div>

            <div class="headings altheading">
                <h2>图文新闻</h2>                
            </div>             
            <div class="contentbox">    
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" onrowdatabound="GridView1_RowDataBound"
                    EnableModelValidation="True" Width="100%" 
                    onrowcommand="GridView1_RowCommand" onrowdeleting="GridView1_RowDeleting" 
                    onrowediting="GridView1_RowEditing">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True">
                        <ItemStyle Width="5%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="EditDate" DataFormatString="{0:yyyy/MM/dd}" 
                            HeaderText="时间">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="15%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="标题" ShowHeader="False">
                            <ItemTemplate>
                                <%# Eval("Title") %>&nbsp;&nbsp;&nbsp;<%# GetTopImage(Container.DataItem) %>                                
                            </ItemTemplate>
                        </asp:TemplateField>
                        <%--<asp:BoundField DataField="Title" HeaderText="标题" />--%>
                        <asp:CommandField ButtonType="Image" 
                            InsertImageUrl="~/Admin/img/icons/icon_unapprove.png" 
                            NewImageUrl="~/Admin/img/icons/icon_unapprove.png" ShowInsertButton="True" 
                            HeaderText="添加" ShowHeader="True">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="5%" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Image" 
                            EditImageUrl="~/Admin/img/icons/icon_edit.png" HeaderText="修改" 
                            ShowEditButton="True" ShowHeader="True">
                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Image" HeaderText="置顶" 
                            SelectImageUrl="~/Admin/img/icons/icon_approve.png" ShowHeader="True" 
                            ShowSelectButton="True">
                        <ItemStyle HorizontalAlign="Center" Width="5%" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Image" 
                            DeleteImageUrl="~/Admin/img/icons/icon_delete.png" HeaderText="删除" 
                            ShowDeleteButton="True" ShowHeader="True">
                        <ItemStyle Width="5%" />
                        </asp:CommandField>
                    </Columns>
                    <EmptyDataTemplate>
                        当前项目没有任何数据                         
                        <br />
                    </EmptyDataTemplate>
                </asp:GridView> 
            </div>
        </div>
        
           
        <div id="footer">
        	设计：哈尔滨零跃科技开发有限责任公司
        </div> 
          
    </div>
    <!-- Right Side/Main Content End -->
    
        <!-- Left Dark Bar Start -->
    <div id="leftside">
    	<div class="user">
        	<img src="img/avatar.png" width="44" height="44" class="hoverimg" alt="Avatar" />
            <p>用户名:</p>
            <p class="username"><asp:LoginName ID="LoginName1" runat="server" />
            </p>
            <p class="userbtn">                
                <asp:Button ID="Button2" runat="server" Text="重新登陆" onclick="Button2_Click" /></p>
            <p class="userbtn">
                <asp:Button ID="Button3" runat="server" Text="退出" onclick="Button3_Click" /></p>
        </div>
        <div class="notifications">
        	<p class="notifycount"><a href="" title="" class="notifypop">10</a></p>
            <p><a href="" title="" class="notifypop">New Notifications</a></p>
            <p class="smltxt">(Click to open notifications)</p>
        </div>
        
        <ul id="nav">
        	<li>
                <ul class="navigation">
                    <li class="heading selected">栏目内容</li>
                    <li><a href="NewsList.aspx" title="">普通新闻</a></li>
                    <li><a href="ImgNewsList.aspx" title="">图文新闻</a></li>
                </ul>
            </li>
            <li>
                <a class="expanded heading">版面设置</a>
                 <ul class="navigation">
                    <li><a href="#" title="">flash图片设置</a></li>
                    <li><a href="#" title="">图片标语设置</a></li>
                    <li><a href="#" title="">友情链接设置</a></li>
                    <li><a href="#" title="">临时活动设置</a></li>
                    <li><a href="#" title="">栏目名称设置</a></li>
                </ul>
            </li>
            <li><a class="expanded heading">值班系统</a>
                <ul class="navigation">
                    <li><a href="#" title="" class="likelogin">分类设置</a></li>
                    <li><a href="#" title="">人员录入</a></li>
                    <li><a href="#" title="">排班</a></li>
                </ul>
            </li>            
        </ul>
    </div>
    <!-- Left Dark Bar End --> 
    
    <!-- Notifications Box/Pop-Up Start --> 
    <div id="notificationsbox">
        <h4>Notifications</h4>
        <ul>
            <li>
            	<a href="#" title=""><img src="img/icons/icon_square_close.png" alt="Close" class="closenot" /></a>
            	<h5><a href="#" title="">New member registration</a></h5>
                <p>Admin eve joined on 18.12.2010</p>
            </li>
            <li>
            	<a href="#" title=""><img src="img/icons/icon_square_close.png" alt="Close" class="closenot" /></a>
            	<h5><a href="#" title="">New member registration</a></h5>
                <p>Jackson Michael joined on 16.12.2010</p>
            </li>
            <li>
            	<a href="#" title=""><img src="img/icons/icon_square_close.png" alt="Close" class="closenot" /></a>
                <h5><a href="#" title="">New blog post created</a></h5>
                <p>New post created on 15.12.2010</p>
            </li>
            <li>
            	<a href="#" title=""><img src="img/icons/icon_square_close.png" alt="Close" class="closenot" /></a>
            	<h5><a href="#" title="">New group created</a></h5>
                <p>“Web Design” group created on 12.12.2010</p>
            </li>
            <li>
            	<a href="#" title=""><img src="img/icons/icon_square_close.png" alt="Close" class="closenot" /></a>
            	<h5><a href="#" title="">1 new private message</a></h5>
                <p>New message from Joe sent on 21.11.2010</p>
            </li>
            <li>
            	<a href="#" title=""><img src="img/icons/icon_square_close.png" alt="Close" class="closenot" /></a>
            	<h5><a href="#" title="">New member registration</a></h5>
                <p>Graham joined on 20.11.2010</p>
            </li>
        </ul>
        <p class="loadmore"><a href="#" title="">Load more notifications</a></p>
    </div>
    <!-- Notifications Box/Pop-Up End --> 
    
    <script type="text/javascript" src="http://dwpe.googlecode.com/svn/trunk/_shared/EnhanceJS/enhance.js"></script>	
    <script type='text/javascript' src='http://dwpe.googlecode.com/svn/trunk/charting/js/excanvas.js'></script>
	<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'></script>
    <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js'></script>
	<script type='text/javascript' src='scripts/jquery.wysiwyg.js'></script>
    <script type='text/javascript' src='scripts/visualize.jQuery.js'></script>
    <script type="text/javascript" src='scripts/functions.js'></script>
    <script type="text/javascript" charset="utf8">
        function p_del() {
            var msg = "         删除后无法恢复，您真的确定要删除吗？请确认！";
            if (confirm(msg) == true) {
                return true;
            } else {
                return false;
            }
        } 
    </script>
    <!--[if IE 6]>
    <script type='text/javascript' src='scripts/png_fix.js'></script>
    <script type='text/javascript'>
      DD_belatedPNG.fix('img, .notifycount, .selected');
    </script>
    <![endif]--> 
    </form>
</body>
</html>
